package cn.com.idmy.base.model;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema.RequiredMode;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.io.Serializable;

@Schema(title = "标题值对数据结构")
public record TitleValue<T>(
        @Schema(title = "标题", requiredMode = RequiredMode.REQUIRED)
        @NotNull String title,

        @Schema(title = "值")
        @Nullable T value
) implements Serializable {
}